package cn.edu.scau.dropship.ServiceImpl;

import cn.edu.scau.dropship.entity.Storehouse;
import cn.edu.scau.dropship.entity.StorehouseExample;
import cn.edu.scau.dropship.mapper.StorehouseMapper;
import cn.edu.scau.dropship.service.StorehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StorehouseServiceImpl implements StorehouseService {
    @Autowired
    private StorehouseMapper storehouseMapper;

    @Override
    public long countByExample(StorehouseExample example) {
        return storehouseMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(StorehouseExample example) {
        return storehouseMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return storehouseMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Storehouse record) {
        return storehouseMapper.insert(record);
    }

    @Override
    public int insertSelective(Storehouse record) {
        return storehouseMapper.insertSelective(record);
    }

    @Override
    public List<Storehouse> selectByExample(StorehouseExample example) {
        return storehouseMapper.selectByExample(example);
    }

    @Override
    public Storehouse selectByPrimaryKey(Integer id) {
        return storehouseMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Storehouse record, StorehouseExample example) {
        return storehouseMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Storehouse record, StorehouseExample example) {
        return storehouseMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Storehouse record) {
        return storehouseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Storehouse record) {
        return storehouseMapper.updateByPrimaryKey(record);
    }
}
